package com.springboot.demo.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.springboot.demo.domain.Test;
import com.springboot.demo.mapper.TestMapper;

/**
 * Created by chenjf on 2017/1/18.
 */
@RestController
@RequestMapping("test")
public class TestController {

    @Autowired
    private TestMapper testMapper;

    @GetMapping("list")
    public void list(){
        List<Test> list = testMapper.findAll();
        System.out.println(list.size());
    }
}
